/*
 * Copyright (c) 2015 Uwantsoft Ltd.
 * www.uwantsoft.com
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Uwantsoft ("Confidential Information").
 * You shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement you
 * entered into with Uwantsoft.
 */

package com.uwantsoft.util;

import java.util.List;

/**
 * @author Chuanbao
 */
public interface EntityRepository {
    public void save(AbstractEntity entity);

    public void update(AbstractEntity entity);

    public <T extends AbstractEntity> T findEntityByGuid(String guid,Class<T> clazz);

    public <T extends AbstractEntity> T findByGuid(String guid,Class<T> clazz);

    public void delete(AbstractEntity entity);

    public void deleteAll(List<AbstractEntity> entities);
}
